package com.ttsx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ttsx.pojo.dto.order.OrderCreateDTO;
import com.ttsx.pojo.dto.order.OrderQueryDTO;
import com.ttsx.pojo.entity.Order;

/**
* @author lucky
* @description 针对表【ttsx_order(订单表)】的数据库操作Service
* @createDate 2025-03-01 17:41:06
*/
public interface OrderService extends IService<Order> {

    PageInfo<Order> getPage(Integer pIndex, Integer pSize, OrderQueryDTO orderQueryDTO);

    String createOrder(OrderCreateDTO orderCreateDTO);

    void orderCancel(Long orderId);

    boolean shipped(String orderNo);

    Order getByOrderNo(String orderNo);
}
